package com.yy.string_;

/**
 * chapter13  com.yy.string_
 * 2023-05-09 10:42
 *
 * @author yy yuyue
 * description : 不可描述
 * @date 2023/5/9 10:42
 */
public class StringExercise10 {


}

class Test{
    String str = new String("yy");
    final char[] ch = {'j','a','v','a'};
    public void change(String str, char ch[]){
        str = "java";
        ch[0] = 'h';
    }

    public static void main(String[] args) {
          Test ex = new Test();

          ex.change(ex.str,ex.ch);
        System.out.print(ex.str + " and ");
        System.out.println(ex.ch);
    }

}